
#ifndef  _MyObj_H_
#define  _MyObj_H_


// #import <Foundation/Foundation.h>
#include <stdio.h>

#include "cocos2d.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "httpClient.h"


USING_NS_CC;
using namespace cocostudio;
using namespace std;
using namespace ui;





#pragma -mark
class CC_DLL MyString: public __String
{
public:
    static MyString* create(const std::string& str);
    static MyString* createWithFormat(const char* format, ...) CC_FORMAT_PRINTF(1, 2);
    static MyString* createWithData(const unsigned char* pData, size_t nLen);
    static MyString* createWithContentsOfFile(const std::string& filename);
};


class CC_DLL MyArray : public __Array
{
public:
    static MyArray* create();
    static MyArray* create(Ref* object, ...) CC_REQUIRES_NULL_TERMINATION;
    static MyArray* createWithObject(Ref* object);
    static MyArray* createWithCapacity(ssize_t capacity);
    static MyArray* createWithArray(MyArray* otherArray);
    static MyArray* createWithContentsOfFile(const std::string& pFileName);
    static MyArray* createWithContentsOfFileThreadSafe(const std::string& pFileName);

};



class CC_DLL MyDictionary : public __Dictionary
{
public:
    static MyDictionary* create();
    static MyDictionary* createWithDictionary(__Dictionary* srcDict);
    static MyDictionary* createWithContentsOfFile(const char *pFileName);
//    static MyDictionary* createWithContentsOfFileThreadSafe(const char *pFileName);
};




#endif






